<?php
header("Content-type:text/html;charset=utf-8");
include "../functions.php";
// echo round(disk_total_space("c:")/pow(1024,3),2)."GB";
// echo "houdunwangxj d: totalSpace=>" .get_size(disk_total_space("d:"));
// include "tmp/file.php";
var_dump(is_dir("tmp"));
//  $_REQUEST    $_GET  $_POST
//  file_exists   is_dir   is_file
//mkdir("a/b/c/d","0777",true);//递归创建目录
// var_dump(rmdir("a"));
//课堂测试
// 创建目录 mkdir  houdunwang    rename 改名  hdphp
$files = scandir("a");
foreach($files as $f){
	if($f=='.'  || $f=='..')continue;
	$type = is_dir("a/".$f)?'目录':"文件";//检测类型是否为目录或者文件
	echo "[".$type."]".$f."<br/>";
}
?>	